package com.usdt.system.dto.cp;

import java.io.Serializable;
import java.time.LocalDateTime;

import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentRowHeight;
import com.alibaba.excel.annotation.write.style.ContentStyle;
import com.alibaba.excel.enums.BooleanEnum;
import com.alibaba.excel.enums.poi.VerticalAlignmentEnum;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

@Data
@ContentRowHeight(15)//高度(自动换行后，隐藏多余数据)
//自动换行  水平居中  垂直居中
//@ContentStyle(wrapped = BooleanEnum.TRUE,horizontalAlignment = HorizontalAlignmentEnum.CENTER,verticalAlignment = VerticalAlignmentEnum.CENTER)
//自动换行 垂直居中
@ContentStyle(wrapped = BooleanEnum.TRUE,verticalAlignment = VerticalAlignmentEnum.CENTER)
public class ClueRegisterListExcelDTO implements Serializable {
    private static final long serialVersionUID = 1L;
	
	@ExcelProperty(index = 0, value = "姓名/电话")
    @ColumnWidth(35)
    private String name;
	
	@ExcelProperty(index = 1, value = "性别")
    private String sex;
	
	@ExcelProperty(index = 2, value = "年龄")
    private Integer age;
	
	@ExcelProperty(index = 3, value = "业务员")
	private String salespersonName;

	@ExcelProperty(index = 4, value = "线索级别")
    private String level;
	
	@ExcelProperty(index = 5, value = "线索来源")
    private String source;
	
	@ExcelProperty(index = 6, value = "线索时间")
	@DateTimeFormat("yyyy-MM-dd HH:mm:ss")
	@ColumnWidth(20)
    private LocalDateTime clueTime;

	@ExcelProperty(index = 7, value = "核心需求")
	@ColumnWidth(35)
    private String coreRequirement;

	@ExcelProperty(index = 8, value = "健康状态")
	@ColumnWidth(35)
    private String healthStatus;
	
	@ExcelProperty(index = 9, value = "病史")
	@ColumnWidth(35)
	private String medicalHistory;
	
	@ExcelProperty(index = 10, value = "到访状态")
    private String visitStatus;

}
